import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('../data/opencv2.png')
# cv2.imshow('img',img)
b=img[:,:,0]
cv2.imshow('b',b)
img[:, :, 0] = 0
cv2.imshow("im-b0", img)
img[:, :, 1] = 0
cv2.imshow("im-b0", img)

cv2.waitKey()
cv2.destroyAllWindows()